package com.hanxy.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hxy.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

/**
 * 系统部门实体
 *
 * @author dingyoukun
 * @date 2021-08-26 20:28
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "SysDepartment", description = "系统部门实体")
@TableName(value = "t_sys_department")
public class SysDepartment extends BaseEntity {

    /**
     * parentId 上级部门
     */
    @ApiModelProperty(value = "上级部门")
    private Integer parentId;

    /**
     * name 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * describes 描述
     */
    @ApiModelProperty(value = "描述")
    private String describes;

}
